﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Tinkle.Mod
{
    public partial class WebUserControl1 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                //TinkleDao.aluno vo = new TinkleDao.aluno();
                //TinkleBo.AlunoBo bo = new TinkleBo.AlunoBo();

                //vo.CreatedOn = DateTime.Now;
                //vo.IsDelete = false;
                //vo.Email = "teste@teste.com.br";
                //vo.PasswordHash = "teste";
                //vo.Nome = "teste";

                //bo.Add(vo);
                //bo.SaveChanges();

                //TinkleBo.AlunoBo bo = new TinkleBo.AlunoBo();
                //Literal1.Text = bo.GetAll().FirstOrDefault().Nome;
            }
            catch (Exception ex)
            {
                Literal1.Text = ex.Message;
            }
        }
    }
}